html, body {
  margin: 0;
  padding: 0;  
}

body {
  font: 13px/16px Arial, sans-serif;
  
  /**
   * If a vertical scrollbar appears while things are resizing, that may distort
   * the calculation of the viewport width, which in turn will throw off
   * future calculations.
   */
  overflow: hidden;
}

#header {
  height: 30px;
  background-color: #C9D7F1;
}

#header-left {
  float: left;
  width: 200px;
  display: inline-block;
}

.dk-button, .dk-toggle-button {
  background: -moz-linear-gradient(center top , #F9F9F9, #E3E3E3) repeat scroll 0 0 transparent;
  background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#F9F9F9), to(#E3E3E3));
  
  display: inline-block;
  padding: 3px 4px;
  cursor: pointer;
  border: 1px solid #999;
  outline: none;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.dk-toggle-button {
  margin: 1px 0 0 10px;
}

.dk-button-hover, .dk-toggle-button-hover {
  border-color: orange;
}

.dk-button-active, .dk-toggle-button-active {
  background-color: #EEE;
  background: -moz-linear-gradient(100% 100% 90deg, #CCC, #EEE);
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#CCC), to(#EEE));
}

.dk-button-checked, .dk-toggle-button-checked {
  background-color: #DDD;
  background: -moz-linear-gradient(100% 100% 90deg, #BBB, #DDD);
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#BBB));
}

.new-doc-button {
  margin: 1px 0 0 10px;
}

.save-button {
  margin-top: 3px;  
}

#header-title {
  display: inline-block;
  width: 642px;
}

#title {
  display: inline-block;
  max-width: 450px;
  height: 30px; 
  float: left;
  margin-left: 10px;
  font-size: 20px;
  line-height: 26px;
  overflow: hidden;
}

#title-buttons {
  text-align: right;  
}

#header-right {
  margin-right: 10px;
  display: inline-block;
  text-align: right;
  float: right;
  line-height: 28px;
}

#email {
  font-weight: bold;  
}

#leftcol {
  float: left;
  width: 200px;
  padding-left: 5px;
}

#content-viewer {
  /* 652px wide results in 80 char-wide code examples */
  width: 652px;
  float: left;
  border-width: 0 1px; 
  border-color: #ccc; 
  border-style: solid; 
  padding-left: 4px;
}

#html-viewer, #xml-viewer {
  overflow: auto;
}

.xml {
  margin: 0;
}

#rightcol {
  /* TODO: resize as necessary */
  width: 300px;
  padding-left: 5px;
  float: left;  
}

#promo {
  position: absolute;
  bottom: 0;
  width: 300px; /* match #rightcol */
  margin-bottom: 5px;
}

#cover {
  float: left;
  width: 165px;
  border: 1px solid #CCC;
  vertical-align: top;
  margin-right: 5px;
}

.html-source-code, code {
  font-family: Courier, monospace;
  color: green;
}

#html-viewer p:first-child {
  margin-top: 0;
}